﻿@model IEnumerable<CodeExample.Models.First>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            One
        </th>
        <th>
            Two
        </th>
        <th>
            Three
        </th>
        <th>
            Four
        </th>
        <th>
            Five
        </th>
        <th>
            Six
        </th>
        <th>
            Seven
        </th>
        <th>
            Eight
        </th>
        <th>
            Nine
        </th>
        <th>
            Ten
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.One)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Two)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Three)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Four)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Five)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Six)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Seven)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Eight)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Nine)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Ten)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.FirstId }) |
            @Html.ActionLink("Details", "Details", new { id=item.FirstId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.FirstId })
        </td>
    </tr>
}

</table>
